import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../components/Login.vue'
import Home from '../components/Home.vue'
import User from '../components/user/user.vue'
import Welcome from '../components/Welcome.vue'
import File from '../components/user/file.vue'
import Auth from '../components/user/auth.vue'
import User_Zc from '../components/user/user_zc.vue'

Vue.use(VueRouter)
const routes = [
  {path: '/', redirect: '/login'},
  {path: '/login', component: Login},
  {path: '/home', component: Home, redirect:"/welcome",
  children:[
   {path: '/user',component: User},
   {path: '/welcome',component: Welcome},
   {path: '/file', component: File},
   {path: '/auth', component: Auth},
   {path: '/user_zc', component: User_Zc}
  ]
  }
]

const router = new VueRouter({
  routes
})

export default router
